package com.lottery.dao.pc28.statisticsDao;

import com.lottery.entity.TotalMoney;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 总金额统计表接口
 */
public interface TotalMoneyDao {
	/**
	 * 插入一条数据
	 */
	void insertTotalMoney(TotalMoney totalmoney);

	/**
	 * 统计分组查询
	 * 
	 * @return
	 */
	List<TotalMoney> getTotalMoneyLimit(@Param(value = "expect") String expect);

	// 获取没中奖的投注金额
	double getBettingmoney(@Param(value = "expect") String expect);

	// 获取中奖金额
	double getWinningamount(@Param(value = "expect") String expect);

}
